package d0312;
public class MyCalc {
    private int n1;
    private int n2;
    public MyCalc() {}
    public MyCalc(int n1,int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }
    public int addition() {
        return this.n1 + this.n2;
    }
    public int subtration() {
        return this.n1 - this.n2;
    }
    public int multiplication() {
        return this.n1 * this.n2;
    }
    public double division() {
        return  (double)this.n1 / this.n2;
    }
    public static void main(String[] args) {
        MyCalc myCalc = new MyCalc(1, 2);
        System.out.println(myCalc.addition());
        System.out.println(myCalc.subtration());
        System.out.println(myCalc.multiplication());
        System.out.println(myCalc.division());
    }}